<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"%>

<div class="bjui-pageContent" style="top: 0; bottom: 35px;">
    <form action="/admin/loan/loan/ajax/edit" data-toggle="validate" data-alertmsg="true">
        <div data-layout-h="0" class="bjui-row col-2">
            <label class="row-label">标的描述:</label>
            <div class="row-input">
                <textarea cols="30" rows="4" name="loanDesc" title="标的描述" data-toggle="autoheight"
                          data-rule="required">${requestScope.loanDesc}</textarea>
            </div>
        </div>

        <label class="row-label">抵押物图片:</label>
        <div class="row-input">
            <input type="file" data-name="pawnPic" data-toggle="webuploader" data-options="
                {
                    pick: {label: '点击选择抵押物图片'},
                    server: '/tool/uploadFile',
                    fileNumLimit: 10,
                    formData: {dir:'editLoan'},
                    accept: {
                        title: '抵押物图片',
                        extensions: 'gif,jpg,jpeg,bmp,png'
                    }
                }">
        </div>

        <input type="hidden" name="loanId" value="${requestScope.loanId}">
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li>
            <button type="button" class="btn-close btn" data-icon="close"><i class="fa fa-close"></i> 取消</button>
        </li>
        <li>
            <button type="submit" class="btn-default btn" data-icon="save"><i class="fa fa-save"></i> 保存</button>
        </li>
    </ul>
</div>